package com.plian.system.service.szyd;

import com.plian.system.entity.nkgl.InternalManagement;
import com.plian.system.entity.szyd.TbImportantMatters;
import com.plian.system.excel.ImportResult;
import com.plian.system.mybatis.base.BaseService;

import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.concurrent.Future;

/**
 * 三重一大-重要事项
 */
public interface ITbImportantMattersService extends BaseService<TbImportantMatters> {

	/**
	 * 校验编码
	 *
	 * @param id
	 * @param code
	 * @return
	 */
	Boolean checkIsExisted(Long id, String code);
	/**
	 * 保存或新增,包含子表
	 *
	 * @param tbImportantMatters
	 * @return
	 */
	Boolean submit(TbImportantMatters tbImportantMatters);


	/**
	 * 校验是否能取消审核和变更
	 *
	 * @param id
	 * @return
	 */
	Boolean checkCancel(Long id);
	Future<ImportResult> importExcel(String progressId, InputStream inputStream);
   String export(String matterType);
	void download(String key, HttpServletResponse response);
}
